package com.tony.service.impl;

import com.tony.bean.Member;
import com.tony.dao.MemberDao;
import com.tony.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Tony on 2017/1/1.
 */
@Service
public class MemberServiceImpl implements MemberService {


    @Autowired
    private MemberDao memberDao;


    public boolean add(Member member) {
        return memberDao.add(member);
    }

    public boolean add(List<Member> list) {
        return memberDao.add(list);
    }

    public void delete(String key) {
        memberDao.delete(key);
    }

    public void delete(List<String> keys) {
        memberDao.delete(keys);
    }
    public boolean update(Member member) {
        return memberDao.update(member);
    }

    public Member get(String keyId) {
        return memberDao.get(keyId);
    }

}